﻿using System;
using System.Web; 


    public class SessionHeartbeatHttpHandler : IHttpHandler, System.Web.SessionState.IRequiresSessionState
    {
        public bool IsReusable { get { return false; } }

        public void ProcessRequest(HttpContext context)
        {
            context.Session["Heartbeat"] = DateTime.Now;
            context.Response.Write(
            ((DateTime)context.Session["Heartbeat"]).ToString("dd:MM:yyyy HH:mm:ss"));
        }
    }
 
 